package com.kuang.action;



import com.kuang.bean.LoginBean;

public class LoginAction {
    private String userName;
    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String execute() throws Exception {
        LoginBean l = new LoginBean();
        if (l.login(userName, password)) {
            return "success";
        }
        return "error";
    }
}

